import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

const routes: Routes = [
  { path: '', pathMatch: 'full', redirectTo: '/welcome' },
  { path: 'welcome', loadChildren: () => import('./pages/welcome/welcome.module').then(m => m.WelcomeModule) },
  { path: 'map', loadChildren: () => import('./pages/map/map.module').then(m => m.MapModule) },
  { path: 'chart', loadChildren: () => import('./pages/chart/chart.module').then(m => m.ChartModule) },
  { path: 'student', loadChildren: () => import('./pages/student/student.module').then(m => m.StudentModule) },
  { path: 'student2', loadChildren: () => import('./pages/student2/student.module').then(m => m.Student2Module) },
  { path: 'customer', loadChildren: () => import('./pages/customer/customer.module').then(m => m.CustomerModule) },
  { path: 'customer2', loadChildren: () => import('./pages/product2/customer/customer.module').then(m => m.Customer2Module) },
  { path: 'product', loadChildren: () => import('./pages/product/product.module').then(m => m.ProductModule) },
  { path: 'product2', loadChildren: () => import('./pages/product2/product/product.module').then(m => m.Product2Module) },
  { path: 'sell', loadChildren: () => import('./pages/sell/sell.module').then(m => m.SellModule) },
  { path: 'sell2', loadChildren: () => import('./pages/product2/sell/sell.module').then(m => m.Sell2Module) },
  { path: 'setting', loadChildren: () => import('./pages/setting/setting.module').then(m => m.SettingModule) }
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule { }
